package com.ruoyi.chengkao.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.chengkao.mapper.CkExamSubjectMapper;
import com.ruoyi.chengkao.domain.CkExamSubject;
import com.ruoyi.chengkao.service.ICkExamSubjectService;

/**
 * 报考科类信息Service业务层处理
 * 
 * @author xiaosong
 * @date 2025-03-10
 */
@Service
public class CkExamSubjectServiceImpl implements ICkExamSubjectService 
{
    @Autowired
    private CkExamSubjectMapper ckExamSubjectMapper;

    /**
     * 查询报考科类信息
     * 
     * @param id 报考科类信息主键
     * @return 报考科类信息
     */
    @Override
    public CkExamSubject selectCkExamSubjectById(Long id)
    {
        return ckExamSubjectMapper.selectCkExamSubjectById(id);
    }

    @Override
    public List<CkExamSubject> selectCkExamSubjectAll()
    {
        return ckExamSubjectMapper.selectCkExamSubjectAll();
    }

    /**
     * 查询报考科类信息列表
     * 
     * @param ckExamSubject 报考科类信息
     * @return 报考科类信息
     */
    @Override
    public List<CkExamSubject> selectCkExamSubjectList(CkExamSubject ckExamSubject)
    {
        return ckExamSubjectMapper.selectCkExamSubjectList(ckExamSubject);
    }

    /**
     * 新增报考科类信息
     * 
     * @param ckExamSubject 报考科类信息
     * @return 结果
     */
    @Override
    public int insertCkExamSubject(CkExamSubject ckExamSubject)
    {
        return ckExamSubjectMapper.insertCkExamSubject(ckExamSubject);
    }

    /**
     * 修改报考科类信息
     * 
     * @param ckExamSubject 报考科类信息
     * @return 结果
     */
    @Override
    public int updateCkExamSubject(CkExamSubject ckExamSubject)
    {
        return ckExamSubjectMapper.updateCkExamSubject(ckExamSubject);
    }

    /**
     * 批量删除报考科类信息
     * 
     * @param ids 需要删除的报考科类信息主键
     * @return 结果
     */
    @Override
    public int deleteCkExamSubjectByIds(Long[] ids)
    {
        return ckExamSubjectMapper.deleteCkExamSubjectByIds(ids);
    }

    /**
     * 删除报考科类信息信息
     * 
     * @param id 报考科类信息主键
     * @return 结果
     */
    @Override
    public int deleteCkExamSubjectById(Long id)
    {
        return ckExamSubjectMapper.deleteCkExamSubjectById(id);
    }
}
